﻿using AutoMapper;
using SY.BasicData.Api.Write.Basic.Applications.Command;
using SY.BasicData.Api.Write.Basic.Applications.Cultivation.Command;
using SY.BasicData.Api.Write.Basic.Applications.Slaughter.Command;
using SY.BasicData.Api.Write.Dto;
using SY.BasicData.Domain;
using SY.BasicData.Domain.Basic;
using SY.BasicData.Domain.Cultivation;
using SY.BasicData.Domain.SlaughterInformation;

namespace SY.BasicData.Api.Write
{
    public class MapperProFiles:Profile
    {
        public MapperProFiles()
        {
            CreateMap<AddBasicCommand,BasicModel>().ReverseMap();
            CreateMap<UpdateBasicCommand, BasicModel>().ReverseMap();
            
            // 免疫信息映射配置
            CreateMap<ImmunityDto, ImmunityModel>().ReverseMap();
            CreateMap<UpdateImmunityCommand, ImmunityModel>().ReverseMap();
            CreateMap<UpdateSlaughterCommand, SlaughterModel>().ReverseMap();
            CreateMap<AddPicQueryCommand, PictureModel>().ReverseMap();
        }
    }
}
